<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

/*-----*沈北路由-------*/
/*---文章管理接口--*/
Route::resource('wl/site/category','ResourceCategoryController')->append(['table'=>'article_category']);
Route::resource('wl/site/management','resource_controller')->append(['table'=>'shenbei_site_management_articles']);
Route::any('wl/site/getArticleNameList', 'ResourceManagementController/getArticleNameList')->allowCrossDomain();
Route::any('wl/site/addArticle', 'ResourceManagementController/addArticle')->allowCrossDomain();
Route::any('wl/site/getArticleDetails', 'ResourceManagementController/getArticleDetails')->allowCrossDomain();
Route::any('wl/site/updateArticle', 'ResourceManagementController/updateArticle')->allowCrossDomain();
Route::any('wl/site/deleteArticle', 'ResourceManagementController/deleteArticle')->allowCrossDomain();
Route::any('wl/site/deleteData', 'ResourceManagementController/deleteData')->allowCrossDomain();
Route::any('wl/site/getArticleListPage', 'ResourceManagementController/getArticleListPage')->allowCrossDomain();
/*--文章分类接口--*/
Route::any('wl/site/getCategoryList', 'ResourceCategoryController/getCategoryList')->allowCrossDomain();
Route::any('wl/site/getCategoryNameList', 'ResourceCategoryController/getCategoryNameList')->allowCrossDomain();
Route::any('wl/site/getCategoryById', 'ResourceCategoryController/getCategoryById')->allowCrossDomain();
Route::any('wl/site/deleteCategory', 'ResourceCategoryController/deleteCategory')->allowCrossDomain();
Route::any('wl/site/deleteCategoryStrips', 'ResourceCategoryController/deleteCategoryStrips')->allowCrossDomain();
Route::any('wl/site/addCategory', 'ResourceCategoryController/addCategory')->allowCrossDomain();
Route::any('wl/site/editCategory', 'ResourceCategoryController/editCategory')->allowCrossDomain();
/*--导入数据--*/
Route::any('wl/site/importData', 'ResourceImportController/importData')->allowCrossDomain();
Route::any('wl/site/getDataTableListPage', 'ResourceImportController/getDataTableListPage')->allowCrossDomain();
Route::any('wl/site/deleteDataTable', 'ResourceImportController/deleteDataTable')->allowCrossDomain();
Route::any('wl/site/deleteAllDataTable', 'ResourceImportController/deleteAllDataTable')->allowCrossDomain();
/*--在线举报--*/
Route::any('wl/site/getReportList', 'ResourceReportController/getReportList')->allowCrossDomain();
Route::any('wl/site/getReportTitleList', 'ResourceReportController/getReportTitleList')->allowCrossDomain();
Route::any('wl/site/getReportById', 'ResourceReportController/getReportById')->allowCrossDomain();
Route::any('wl/site/editReport', 'ResourceReportController/editReport')->allowCrossDomain();
Route::any('wl/site/deleteReport', 'ResourceReportController/deleteReport')->allowCrossDomain();
Route::any('wl/site/deleteReportStrips', 'ResourceReportController/deleteReportStrips')->allowCrossDomain();
